package cn.swing.his.common.web;

/**
 * 错误代码枚举类型
 */
public enum ResponseCode {

    OK(20000),
    BAD_REQUEST(400),
    INTERNAL_SERVER_ERROR(500),
    ERR_BAD_REQUEST(49000),//
    SYSTEM_ERROR(49002),//系统错误
    PATIENT_INFO_NOT_FOUND(49001), //就诊卡信息不存在
    PATIENT_INFO_ALREADY_EXIST(49002), //用户已存在
    UPDATE_PATIENT_INFO_ERROR(49003), //修改信息失败
    INSERT_PATIENT_INFO_ERROR(49004), //插入信息失败
    DELETE_ORDER_SETTING_ERROR(49005), //删除失败
    DELETE_PATIENT_INFO_ERROR(49006), //删除失败
    ACCOUNT_IS_DISABLED(450),
    PASSWORD_NOT_MATCH(475),
    ERR_JWT_EXPIRED(476),
    ERR_JWT_MALFORMED(477),
    ERR_JWT_SIGNATURE(478),
    ERR_TELEPHONE_NOT_FOUND(404),
    ERR_PASSWORD_NOT_MATCH(405),
    ERR_FORBIDDEN(403),
    ERR_UNAUTHORIZED(401);


    private Integer value;

    ResponseCode(Integer value) {
        this.value = value;
    }

    public Integer getValue() {
        return value;
    }

}
